Skip to content

chore: add oxlint, oxfmt, CI checks and Dependabot - #10

Merged
philippzentner merged 6 commits into
chore/p2-major-upgradesfrom
chore/p3-oxc-dependabot
Nov 6, 2026
Merged

philippzentner merged 6 commits into
chore/p2-major-upgradesfrom
chore/p3-oxc-dependabot

Conversation

@philippzentner

Copy link
Copy Markdown
Contributor

Stacked on #9

What changed

  • Lint: oxlint 1.90.0 (pinned) with .oxlintrc.json: default correctness category + typescript and import plugins. Scripts lint / lint:fix.
    • 1 finding fixed mechanically: no-unused-vars on an unused catch binding in TronContractDeployer.ts → optional catch binding (catch {). No rules disabled.
  • Format: oxfmt 0.75.0 (pinned) with .oxfmtrc.json derived from existing style (no semicolons, single quotes, es5 trailing commas, width 80). Scripts format / format:check. Reformat is isolated in 82bd1fd (6 files, +73/−59, mostly README tables and long export lines) and listed in .git-blame-ignore-revs.
  • CI: new .github/workflows/ci.yml on pull_request (no existing workflow ran on PRs except the title check): lint, format check, build, using ./.github/actions/bun-install and the SHA-pinned actions/checkout already used in publish.yml.
  • Dependabot: .github/dependabot.yml for bun (/, /packages/tron-lib) and github-actions (/, /.github/actions/bun-install); monthly, one minor+patch group per ecosystem, majors individually, open-pull-requests-limit: 5. Validated with npx -y @bugron/validate-dependabot-yaml (exit 0).

Why

P3 faster tooling: the repo had no linter/formatter; Dependabot is the org convention (Renovate isn't installed).

Verification (Node 24.22.2, Bun 1.4.4)

Command Base (#9) This PR
bun install --frozen-lockfile ✅ ✅
bun run build ✅ ✅
bun run lint n/a (no linter) ✅ 0 warnings/errors, ~0.4s
bun run format:check n/a ✅ 39 files
npm pack --dry-run (packages/tron-lib) 109 files identical 109 files

Reviewer checks

  • Skim the reformat commit (82bd1fd), esp. the README table re-alignment.
  • Optionally set git config blame.ignoreRevsFile .git-blame-ignore-revs locally.
  • Confirm the new CI workflow runs green on this PR.

@philippzentner
philippzentner marked this pull request as ready for review November 6, 2026 21:00
@philippzentner
philippzentner merged commit a6fbc55 into chore/p2-major-upgrades Nov 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant